import { createApp } from 'vue';
import App from './App.vue';
import './assets/reset.css'
import router from './router/router.js'
import * as echarts from 'echarts';
import EChartsPlugin from './plugins/vue-echarts';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import { createPinia } from 'pinia';

const app = createApp(App);

const pinia = createPinia();
app.use(pinia);

app.config.globalProperties.$echarts = echarts;

app.use(router); // 确保你的 router.js 正确配置了 Vue Router
app.use(ElementPlus);
app.use(EChartsPlugin);

app.mount('#app');
